package com.nursinghome.emp.service.impl;

import com.nursinghome.bean.Salary;
import com.nursinghome.emp.mapper.EmpSalaryMapper;
import com.nursinghome.emp.service.EmpSalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpSalaryServiceImpl implements EmpSalaryService {
    @Autowired
    private EmpSalaryMapper empSalaryMapper;
    @Override
    public List<Salary> selectByMid(String data, Integer mid) {
        return empSalaryMapper.selectByMid(data, mid);
    }

    @Override
    public Salary selectBySid(Long sid) {
        return empSalaryMapper.selectBySid(sid);
    }
}
